#pragma once

#include "StaticObject.h"
#include <iostream>
#include <list> 

using namespace std;
struct Coin
{
	D3DXVECTOR2 _Position;
	int _CurFrame;
	int _NumFrame;
	int _Time;
	int _TimeAnimation;
	RECT _Rect;
};
class ShowCoin
{
private:
	list<Coin*>* _listCoins;
	D3DXVECTOR2 _DrawPosition;
	LPD3DXSPRITE _SpriteHandler;
	Texture *_Texture;
	float _Vy;
	Coin* _Coin;

public:
	ShowCoin(LPD3DXSPRITE SpriteHandler);
	~ShowCoin(void);
	void Add(D3DXVECTOR2 Position);
	void Update(int Deltatime);
	void Draw();
};

